package com.purchase.jd.commodity;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author saw
 */
public class JdConstants {

    /** sku_id */
    public static String SKU_ID = "12137595";
    /** _JdEid参数获取 */
    public static String EID = "NR3L4N3AHB7GRYLZVI5UXBFBNM23XQQVC6BOEDN33YN3UO77FRPJEI5Q73COOQKYUBTCDAAYZWY6IEVRDK26G7IWZU";
    /** _JdJrTdRiskFpInfo */
    public static String FP = "06cc6095ae5c35719a57e58580e5e1b8";
    /** 需要抢购的数量 */
    public static Integer NEED_COUNT = 1;
    /** 购物车数量 */
    public static AtomicInteger SHOPPING_COUNT = new AtomicInteger(0);
    /** 已经抢购的数量 */
    public static AtomicInteger COUNT = new AtomicInteger(0);
    /** 获取京东时间的Url */
    public final static String TIME_URL = "https://api.m.jd.com/client.action?functionId=queryMaterialProducts&client=wh5";
    /** 需要转换的时间字段 */
    public final static String TIME_COLUMN = "currentTime2";
    /** 抢购商品的URL */
    public static String COMMODITY_URL = "https://item-soa.jd.com/getWareBusiness?skuId=";
    /** 获取订单信息URL */
    public final static String ORDER_URL = "https://trade.jd.com/shopping/order/getOrderInfo.action";
    /** 抢购的URL */
    public static String BUYING_URL = "https://cart.jd.com/gate.action?pcount=1&ptype=1&pid=";
    /** 提交订单URL */
    public static String SUBMIT_URL = "https://trade.jd.com/shopping/order/submitOrder.action";
    /** 扫码地址 */
    public static String SCAN_URL = "https://qr.m.jd.com/show?appid=133&size=147&t=";
    /** 验证京东票据 */
    public static String CHECK_TICKET_URL = "https://passport.jd.com/uc/qrCodeTicketValidation?t=";
    /** 默认开启线程数 处理器核心数*/
    public static Integer THREADS = Runtime.getRuntime().availableProcessors();
}
